<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/circle/circlelist" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <h1>商圈管理</h1>
    </div>
    <div class="filterbar">
      <form id="search" action="{:URL('admin/Circle/circlelist')}" method="post">
        <label for="">商圈名称</label>
        <input type="text" name="circlename" id="circlename" value="{$circlename}" class="input-text">
        置顶：<label><input type="radio" name="totop" value="1" <eq name="Think.request.totop" value="1">checked</eq> />是&nbsp;</label><label><input type="radio" name="totop" value="0" <eq name="Think.request.totop" value="0">checked</eq> />否&nbsp;</label>
        推荐到首页：<label><input type="radio" name="tohomepage" value="1" <eq name="Think.request.tohomepage" value="1">checked</eq> />是&nbsp;</label><label><input type="radio" name="tohomepage" value="0" <eq name="Think.request.tohomepage" value="0">checked</eq> />否&nbsp;</label>
      <label for="">商圈分类</label>
        <select name="cateid" id="cateid">
              <option value="">请选择</option>
            <volist name="catelist" id="vo">
             <option value="{$vo['_id']}" <eq name="vo._id" value="$cateid">selected</eq>>{$vo['znname']}</option>
           </volist>
            </select>
        <button type="submit" class="btn-search" id="J_search" title="{$Think.lang.search}">
          <i class="icon-search"></i>
        </button>
      </form>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="">
                <input type="checkbox" class="toggle-all" />
              </th>
              <th style="">商圈名称</th>
              <th style="">商圈图标</th>
              <th style="">建立人</th>
              <th style="">参加人数</th>
              <th style="">播报数量</th>
              <th style="">{$Think.lang.ctime}</th>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist name="list" id="vo">
              <tr data-id="{$vo['_id']}" class="toggle">
                <td>
                  <input type="checkbox" name="checkbox" class="toggle" value="{$vo['_id']}" />
                </td>
                <td>{$vo['circlename']}</td>
                <td><a href="{$vo['circleimage']}" target="_blank" ><img src="{$vo['circleimage']}" style='width:45px;height:45px;' /></a>
                </td>
                <td>{$vo['username']}</td>
                <td>{$vo['peoplecount']}</td>
                <td>{$vo['message_count']}</td>
                <td>{$vo['datetime']}</td>
                <td>
                  <eq name="vo['totop']" value="1">
                    <a href="#" data-val='0' data-id="{$vo['_id']}"  class="A_top">{$Think.lang.canceltotop}</a>
                  <else />
                    <a href="#" data-val='1' data-id="{$vo['_id']}"  class="A_top">{$Think.lang.totop}</a>
                  </eq>  |
                  <eq name="vo['tohomepage']" value="1">
                    <a href="#" data-val='0' data-id="{$vo['_id']}" class="A_homepage">{$Think.lang.canceltohomepage}</a>
                  <else />
                    <a href="#" data-val='1' data-id="{$vo['_id']}" class="A_homepage">{$Think.lang.tohomepage}</a>
                  </eq>
                  | <a href="javascript:;" onclick="javascript:window.location.href='{:URL('admin/Circle/addCircle','circleid='.$vo['_id'].'')}'">{$Think.lang.editor}</a>
                  | <a href="javascript:;" class="A_del">{$Think.lang.delete}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>

      <div class="datas-ft">
        <div class="actions">
          <a href="{:URL('admin/Circle/addCircle')}" class="btn">添加{$Think.lang.circle}</a>
          <a href="#" class="btn" id="J_del">删除{$Think.lang.circle}</a>
        </div>
        <div class="pager">{$page}</div>
      </div>

    </div>
  </div>
</body>

</html>
